<template>
    <el-dialog title="决策" :close-on-click-modal="false" :visible.sync="visible" :append-to-body="true"
        class="SHZY-dialog SHZY-dialog_center" lock-scroll width="70%">
        <el-row :gutter="15" class="">
            <el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" :rules="rules">
                <el-col :span="24">
                    <el-form-item label="使用决策" prop="decision">
                        <el-input v-model='dataForm.decision' placeholder='请输入使用决策' clearable :style='{ "width": "100%" }'
                            maxlength='100'>
                        </el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="破坏性数量" prop="destructivenessQty">
                        <el-input v-model='dataForm.destructivenessQty' placeholder='请输入破坏性数量' clearable
                            :style='{ "width": "100%" }' maxlength='200'>
                        </el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="破坏性数量" prop="destructivenessQty">
                        <el-input v-model='dataForm.destructivenessQty' placeholder='请输入破坏性数量' clearable
                            :style='{ "width": "100%" }' maxlength='200'>
                        </el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="24">
                    <el-form-item label="备注" prop="decisionDesc">
                        <el-input v-model='dataForm.decisionDesc' placeholder='请输入备注' show-word-limit
                            :style='{ "width": "100%" }' type='textarea' :autosize='{ "minRows": 4, "maxRows": 4 }'
                            maxlength='500'>
                        </el-input>
                    </el-form-item>
                </el-col>
            </el-form>
            <el-table v-loading="listLoading" :data="tableData" size="small" border>
                <el-table-column prop="code" label="检验批号"></el-table-column>
                <el-table-column prop="inspectionlot" label="报检批号"></el-table-column>
                <el-table-column prop="incomingQty" label="来料数量"></el-table-column>
                <el-table-column prop="destructivenessQty" label="破坏性数量">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.destructivenessQty" />
                    </template>
                </el-table-column>
                <el-table-column prop="receiveQty" label="接收数量">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.receiveQty" />
                    </template>
                </el-table-column>
                <el-table-column prop="rejectQty" label="拒收数">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.rejectQty" />
                    </template>
                </el-table-column>
                <el-table-column prop="decisionDesc" label="备注">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.decisionDesc" />
                    </template>
                </el-table-column>
            </el-table>
            <br>
        </el-row>
        <span slot="footer" class="dialog-footer">
            <el-button @click="visible = false">取 消</el-button>
            <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading">合格</el-button>
            <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading">不合格</el-button>
            <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading">提交审核</el-button>
        </span>
    </el-dialog>
</template>
<script>
export default {
    components: {},
    props: [],
    data() {
        return {
            btnLoading: false,
            loading: false,
            visible: false,
            formVisible: false,
            dataForm: {

            },
            rules: {},
            listLoading: false,
            tableData: [
                { code: "123", inspectionlot: "123", incomingQty: 100, destructivenessQty: 0, receiveQty: 0, rejectQty: 0, decisionDesc: "" },
                { code: "123", inspectionlot: "123", incomingQty: 100, destructivenessQty: 0, receiveQty: 0, rejectQty: 0, decisionDesc: "" },
                { code: "123", inspectionlot: "123", incomingQty: 100, destructivenessQty: 0, receiveQty: 0, rejectQty: 0, decisionDesc: "" },
                { code: "123", inspectionlot: "123", incomingQty: 100, destructivenessQty: 0, receiveQty: 0, rejectQty: 0, decisionDesc: "" }
            ],
        }
    },
    computed: {},
    watch: {},
    created() {
    },
    mounted() {
    },
    methods: {

        goBack() {
            this.$emit('refresh')
        },
        init(id) {
            this.visible = true;
        },
        dataFormSubmit() {

        },
    }
}
</script>
